
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>客服服务</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css">
	<style type="text/css">
		.none{display: none !important;}
		.show{display: block;}
		.top{background: none;top: 0;left: 0;position: fixed;width: 100%;}
		.return{height: 45px;background-color: #0094ff;width: 100%;line-height: 45px;text-align: center;position: relative;}
		.return img{width: 16px;height: 17px;position: absolute;left: 20px;top: 14px;}
		.return span{font-size: 16px;color: #fff;flex: 2;}
		.container{width: 100%;}
		.topbanner{width: 100%;height: 200px;}
		.bottom{position: fixed;width: 100%;bottom: 0px;left: 0;height: 55px;display: flex;align-items: center;border-top: 1px solid #ccc;border-bottom:1px solid #ccc ;background: #fff;padding-bottom: 10px;}
		.bottom input{width: 80%;padding: 10px 0 10px 10px;border: none;margin-right: 5px;margin-left: 10px;}
		.bottom button{width: 60px;height: 40px;background: none;color: #62778C;}
		.content{padding: 10px 10px 55px;}
		.border{padding: 10px 10px;}
		.content .service{display: flex;margin-top: 10px;}
		.content .service img{width: 30px;height: 30px;border-radius: 50%;margin-right: 5px;flex-shrink: 0;}
		.content .service .color1{background: #eff3f6;border-radius: 10px;padding: 20px 10px 10px;color: #fff;font-size: 14px;}
		.content .client{display: flex;align-items: center;justify-content: flex-end;margin-top: 20px;}
		.content .client img{width: 30px;height: 30px;border-radius: 100%;margin-left: 5px;}
		.content .client .color2{background: #0094ff;border-radius: 10px;padding: 10px;color: #fff;}
		.adv{margin:45px 0 10px;padding: 10px 10px 10px;border: 1px solid #DDE5ED;}
		.adv .ppp{font-size: 16px;color: rgba(255,0,0);text-align: center;text-decoration: underline;}
		.qidai{width: 100%;text-align: center;margin-bottom: 10px;}
		.qidai label{padding: 3px 5px;color: #62778C;font-size: 14px;background: #EFF3F6;border-radius: 4px;}
		.service1{padding: 45px 15px 10px;}
		.service1 h4{font-size: 14px;color: #28334B;padding-top: 13px;font-weight: 500;}
		.service1 p{margin-top: 16px;color: #28334B;font-size: 14px;}
		.kf-group{width: 100%;padding-top: 18px;}
		.kf-group span{padding: 10px 15px;border-radius: 18px;border: 1px solid #DDE5ED;color: #1F8CEB;background: #fff;font-size: 14px;margin-right: 5px;}
		
	</style>
</head>

<body>
	<div class="container">
		<div class="top">
			<div class="return"> <img src="images/return.png" > <span class="us">选择客服</span></div>
		</div>
		<div class="service1">
			<h4>欢迎光临！请选择以下客服人员开始咨询：</h4>
			<p>全部客服</p>
			<div class="kf-group">
				<span>客服1</span>
				<span>客服2</span>
			</div>
		</div>
		
		<div class="content none">
			<div class="adv">
				<a href="http://www.zzxx100.com/hhkk1/" target="_blank">
					<img src="images/topbanner.png" class="topbanner">
					<p class="ppp"><strong>点击此处领取  5G时代手机赚钱新项目</strong> </p>
					<p class="ppp"><strong>专业老师一对一指导让你在家日赚800+</strong></p>
				</a>
			</div>
			<div class="border">
				<div class="qidai ">
					<label>欢迎您的咨询，期待为您服务！</label>
					
				</div>
				<!-- <div class="service ">
					<img src="images/kf1.jpg" >
					<a href="http://www.zzxx100.com/hhkk1/" target="_blank" style="text-decoration:underline; color:inherit;" class="color1">
						<span style="font-size: 14px; color: rgb(0, 0, 0);"><strong>亲~你点击上方图片，免费领取手机赚钱项目哦~</strong></span><br>
						<span style="font-size: 14px; color: rgb(229, 51, 51);"><strong>1、2020全新赚钱火爆项目来袭</strong></span><br>
						<span style="font-size: 14px; color: rgb(229, 51, 51);"><strong>2、本项目只欢迎真正想赚钱人士</strong></span><br>
						<span style="font-size: 14px; color: rgb(229, 51, 51);"><strong>3、本项目需要投入30-90元的资金</strong></span><br>
						<span style="font-size: 14px; color: rgb(0, 0, 0);"><strong>4、本项目仅限19岁以上人士参与！</strong></span>
					</a>
				</div>
				<div class="service ">
					<img src="images/kf1.jpg" >
					<a href="http://www.zzxx100.com/hhkk1/" target="_blank" style="text-decoration:underline; color:inherit;" class="color1">
						<span style="color: rgb(229, 51, 51);">感谢您的参与!请点击上方图片详细了解后，添加老师微信参与项目!</span>
					</a>
				</div> -->
				<!-- <div class="client">
					<div class="color2">我想问问你在吗？我想问问你在吗？我想问问你在吗？我想问问你在吗？我想问问你在吗？</div>
					<img src="images/wechat.png" >
				</div> -->
			</div>
		</div>
		
	</div>
	<div class="bottom none">
		<input type="text"  value="" placeholder="请输入内容" class="textval" />
		<button type="button" id="send">发送</button>
		
	</div>

    
    <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
	
	<script type="text/javascript">
		var kfimg = ''
		var kfList = $('.kf-group span')
		
		for(let i = 0;i<kfList.length;i++){
			$(kfList[i]).click(()=>{
				
				$('.content').removeClass('none')
				$('.bottom').removeClass('none')
				$('.service1').addClass('none')
				
				if(i == 0){
					kfimg = 'images/kf1.jpg';
					$('.us').html('客服1')
					sercontent()
				}else if(i == 1){
					kfimg = 'images/kf2.png';
					$('.us').html('客服2')
					sercontent()
				}

				
			})
		}
		function sercontent(){
			setTimeout(function(){
				
				var str = '<div class="service ">'+
						'<img src="'+kfimg+'" >'+
						'<a href="http://www.zzxx100.com/hhkk1/" target="_blank" style="text-decoration:underline; color:inherit;" class="color1">'+
							'<span style="font-size: 14px; color: rgb(0, 0, 0);"><strong>亲~你点击上方图片，免费领取手机赚钱项目哦~</strong></span><br>'+
							'<span style="font-size: 14px; color: rgb(229, 51, 51);"><strong>1、2020全新赚钱火爆项目来袭</strong></span><br>'+
							'<span style="font-size: 14px; color: rgb(229, 51, 51);"><strong>2、本项目只欢迎真正想赚钱人士</strong></span><br>'+
							'<span style="font-size: 14px; color: rgb(229, 51, 51);"><strong>3、本项目需要投入30-90元的资金</strong></span><br>'+
							'<span style="font-size: 14px; color: rgb(0, 0, 0);"><strong>4、本项目仅限19岁以上人士参与！</strong></span>'+
						'</a>'+
					'</div>'
				$('.border').append(str)
			},1500)
			
			setTimeout(function(){
				var str = '<div class="service ">'+
						'<img src="'+kfimg+'" >'+
						
							'<span class="color1" style="color: #3a3c4c;">感谢您的参与!请点击上方图片详细了解后，添加老师微信参与项目!</span>'+
						
					'</div>'
				$('.border').append(str)
			},3000)
		}
		var i = 0
		
		$('#send').click(function(){
			i++
			
			var text = $('.textval').val()
			if(text == ''){
				alert('内容不能为空')
			}else{
				var html = '<div class="client">'+
					'<div class="color2">'+text+'</div>'
				'</div>'
				$('.border').append(html)
				$('.textval').val('')
				
			}
			var sclltop = $(document).scrollTop() +$('.client').height()*i
			
			$(document).scrollTop(sclltop)
			
		})
	</script>

</body>

</html>